﻿create proc thuan_qtdanhmucdouutiensua
@ID int,
@DienGiai nvarchar(255)
as
if exists(select * from DanhMuc_DoUuTien Where DoUuTien<>@ID and DienGiai=@DienGiai)
begin
select ErrCode=0
end
else
begin
update DanhMuc_DoUuTien set DienGiai=@DienGiai WHere DoUuTien=@ID
select ErrCode=1
end